<%#
# To change this template, choose Tools | Templates
# and open the template in the editor.
%>
<% if display_ingredient_row == @current_ingredient %>
  <%= render(:partial => "edit_ingredient_row", :object => display_ingredient_row) %>
<% else %>
  <tr>
   <td width="20%"><%=h display_ingredient_row.name %></td>
   <td width="15%"><%=h display_ingredient_row.amount %></td>
   <td width="15%"><%=h display_ingredient_row.amount_unit %></td>
   <td width="35%"><%=h display_ingredient_row.notes %></td>
   <td width="15%">
      <% if session[:logged_in] == 1 %>
      <% if !@no_edit %>
         <% form_remote_tag :url => {:action => "edit_ingredient", :id=>@ing_count} do %>
         <%= submit_tag "Edit" %>
         <% end %>
      <% else %>
         <b>None</b>
      <% end %>
      <% end %>
   </td>
</tr>
<% end %>
<% @ing_count = @ing_count + 1 %>